package cn.edu.scau.cmi.houzhicong.client;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class SimpleFactoryClient extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/houzhicong/factoryPattern/gui/SimpleFactoryScene.fxml"));
        primaryStage.setTitle("简单工厂方法");
        primaryStage.setScene(new Scene(root));
        primaryStage.show();
    }
}
